package study.仪器解析.微生物培养仪;

import com.opencsv.CSVReader;
import com.opencsv.exceptions.CsvValidationException;

import java.io.FileReader;
import java.io.IOException;

public class CsvParser {
    public static void main(String[] args) {
        String filePath = "E:\\DeskTop\\工作\\项目信息\\仪器对接\\文档\\哈北仪器导出文件格式\\ResultsDatabase-SN23040279A-2025-5-6_14-48-34.csv"; // 替换成你的文件路径

        try (CSVReader reader = new CSVReader(new FileReader(filePath))) {
            String[] line;
            while ((line = reader.readNext()) != null) {
                for (String value : line) {

                    System.out.print(value + "  ");
                }
                System.out.println();
            }
        } catch (IOException | CsvValidationException e) {
            e.printStackTrace();
        }
    }
}
